package com.biubiu.biubiuexam.nosql.model;


import cn.hutool.json.JSONObject;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * The type Exam question.
 */
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
@Document("exam_question")
public class ExamQuestion {

    @Id
    private String id;

    private int type;

    private JSONObject content;

    private String link;

    private Long teacherId;

    /**
     * Instantiates a new Exam question.
     *
     * @param type    the type
     * @param content the content
     */
    public ExamQuestion(int type, JSONObject content) {
        this.type = type;
        this.content = content;
    }
}
